<?php

function Spacer()
{
}
?>
<img <?php echo createComIcon($root_path,'angle_left_s.gif',0,'',true); ?>>
<br>
<font face="Verdana,Helvetica,Arial" size=2 color="#cc0000">
<?php echo $LDOptsForPerson ?>  <a href="javascript:gethelp('preg_options.php')"><img <?php echo createComIcon($root_path,'frage.gif','0','absmiddle',true) ?>></a>
</font>

<table cellSpacing=0 cellPadding=0 class="submenu_frame" border=0>
	<tbody>
	<tr>
	<td>
		<table cellSpacing=1 cellPadding=2 border=0>
			<tbody class="submenu">
				<?php
				if($current_encounter){
				?>
			<tr> 
				<td align=center>
					<img <?php echo createComIcon($root_path,'pdata.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2>
				 	<nobr>
					<a href="aufnahme_daten_zeigen.php<?php echo URL_APPEND ?>&encounter_nr=<?php echo $current_encounter ?>&origin=patreg_reg"><?php echo $LDPatientData; ?></a>
					</nobr>
					</font>
				</td>
			</tr>
				
				<?php
				}elseif(!$death_date || ($death_date == DBF_NODATE)){
				?>
			<tr> 
				<td align=center>
					<img <?php echo createComIcon($root_path,'post_discussion.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<nobr>
					<a href="aufnahme_start.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&origin=patreg_reg&encounter_class_nr=1"><?php echo $LDAdmission.' - '.$LDStationary; ?></a>
					</nobr> 
					</font>
				</td>
			</tr>
				
			<?php Spacer(); ?>
					
			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'discussions.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top width=150>
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="aufnahme_start.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&origin=patreg_reg&encounter_class_nr=2"><?php echo $LDVisit.' - '.$LDAmbulant; ?></a>
					</font>
				</td>
			</tr>
			
				<?php
				}
				?>
				
			<?php Spacer(); ?>

			<tr>  
				<td align=center>
					<img <?php echo createComIcon($root_path,'timeplan.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="show_appointment.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDAppointments ?></a>
					</font>
				</td>
			</tr>
	
			<?php Spacer(); ?>
					
			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'qkvw.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<nobr>
					<a href="show_encounter_list.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDListEncounters ?></a>
					</nobr> 
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>
					
			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'discussions.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="show_medocs.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDMedocs ?></a>
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'eye_s.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2>
					<a href="show_drg.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDDRG ?></a>
					</font>
				</td>
			</tr>
	
			<?php Spacer(); ?>
					
			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'bubble.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="show_diagnostics_result.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDDiagXResults ?></a>
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'eye_s.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<nobr>
					<a href="show_diagnosis.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDDiagnoses ?></a>
					</nobr> 
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>
	
			<tr> 
				<td align=center><img <?php echo createComIcon($root_path,'discussions.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<nobr>
						<a href="show_procedure.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDProcedures ?></a>
					</nobr> 
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'prescription.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<nobr>
					<a href="show_prescription.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDPrescriptions ?></a>
					</nobr> 
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'new_group.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<nobr>
					<a href="show_notes.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>&type_nr=21"><?php echo "$LDNotes - $LDPatientDev" ?></a>
					</nobr> 
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'new_group.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top >
					<font face="Verdana,Helvetica,Arial" size=2> 
					<nobr>
					<a href="show_notes.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo "$LDNotes $LDAndSym $LDReports" ?></a>
					</nobr>
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'people_search_online.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top width=150>
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="show_immunization.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDImmunization ?></a>
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'people_search_online.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top width=150>
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="show_weight_height.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDMeasurements ?></a>
					</font>
				</td>
			</tr>

			<?php
			/* If the sex is female, show the pregnancies option link */
			if($sex=='f') { 
			?>
			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'man-whi.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top width=150>
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="show_pregnancy.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDPregnancies ?></a>
					</font>
				</td>
			</tr>
			<?php } ?>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'new_address.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top width=150>
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="show_birthdetail.php<?php echo URL_APPEND ?>&pid=<?php echo $pid ?>&target=<?php echo $target ?>"><?php echo $LDBirthDetails ?></a>
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>

			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'new_address.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top width=150>
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="javascript:popRecordHistory('care_person',<?php echo $pid ?>)"><?php echo $LDRecordsHistory ?></a>
					</font>
				</td>
			</tr>

			<?php Spacer(); ?>
			<tr>
				<td align=center>
					<img <?php echo createComIcon($root_path,'icon_acro.gif','0','',FALSE) ?>>
				</td>
				<td vAlign=top width=150>
					<font face="Verdana,Helvetica,Arial" size=2> 
					<a href="<?php echo $root_path."modules/pdfmaker/registration/regdata.php".URL_APPEND."&pid=".$pid ?>" target=_blank><?php echo $LDPrintPDFDoc ?></a>
					</font>
				</td>
			</tr>
			</tbody>
		</table>
	</td>
	</tr>
	</tbody>
</table>

